package com.java.admin.service;

import com.java.param.AdminProductParam;
import com.java.param.ProductIdRemoveParam;
import com.java.param.ProductSearchParam;
import com.java.pojo.Product;
import com.java.utils.R;
import org.springframework.stereotype.Service;

@Service
public interface ProductService {
    /**
     * 根据关键字搜索商品信息
     * @param productSearchParam
     * @return
     */
    R list(ProductSearchParam productSearchParam);

    /**
     * 添加商品信息
     * @param adminProductParam
     * @return
     */
    R save(AdminProductParam adminProductParam);

    /**
     * 更新商品信息
     * @param product
     * @return
     */
    R update(Product product);

    /**
     * 删除商品信息
     * @param productIdRemoveParam
     * @return
     */
    R remove(ProductIdRemoveParam productIdRemoveParam);
}
